import json


def getData(dir):
    with open(dir, 'r+') as user:
        data = json.load(user)
        ret_data = ()
        name = []
        passwd =[]
        for i in range(1, len(data)+1):
            print(data['{}'.format(i)]['name'])
            name.append(data['{}'.format(i)]['name'])
            passwd.append(data['{}'.format(i)]['passwd'])
            ret_data = zip(name,passwd)
        return ret_data